<?php
$this->breadcrumbs=array(
	'Avisos',
);

$this->menu=array(
	array('label'=>'Create Aviso', 'url'=>array('create')),
	array('label'=>'Manage Aviso', 'url'=>array('admin')),
);
?>

<?php if(!empty($_GET['idA']))
	if($_GET['idA']=='c')
		echo '<h2><i>Celulares</i></h2></br>';
	else
		if($_GET['idA']=='a')
			echo '<h2><i>Accesorios</i></h2></br>';
		else
			if($_GET['idA']=='s')
				echo '<h2><i>Accesorios</i></h2></br>';
?>

<?php 
$dataProvider=new CActiveDataProvider('Aviso', array(
    'criteria'=>array(
        'condition'=>'aprobado=1',
        'order'=>'fechaAlta',
    ),
    'pagination'=>array(
        'pageSize'=>20,
    ),
));

$this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
	'summaryText'=>'',
)); 
?>
